const sq = require('./index');
const { DataTypes } = require('sequelize');
const userFriendsConfirm = sq.define('userFriendsConfirm', {
    userId: {
        type: DataTypes.INTEGER,
        allowNull: false,
        comment: "用户的好友的id的值"
    },
    friendUserId: {
        type: DataTypes.INTEGER,
        allowNull: false,
        comment: "用户的好友的id的值"
    },
    isConfirm: {
        type: DataTypes.INTEGER,
        allowNull: false,
        comment: "关系的类型 1表示对方同意 2表示对方拒绝 3表示已发送 "
    },
    commentInfo: {
        type: DataTypes.STRING,
        comment: "发送好友的确认备注的消息"
    },
}, {
    freezeTableName: true,
});
//userFriendsConfirm.sync({ force: true })
module.exports = userFriendsConfirm;